package com.sumainfor.zuul.controller;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.zuul.service.impl.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * 功能描述:
 *
 * @Auther: zhlu
 * @Date: 2019/1/18 11:13
 * @Description:
 */
@RestController
@RequestMapping("/dept")
public class DeptController {

    @Autowired
    DeptService deptService;

    /**
     * 功能描述: 
     * 根据当前登录用户归属区域查询归属区域下的服务中心
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/1/18 11:15
     */
    @GetMapping("/SelectMinistryList")
    public JsonResult getDeptList(@RequestParam Map<String,Object> params){
        JsonResult result=new JsonResult();
        params.put("type","3");// 服务中心
        result.put(deptService.getDeptList(params));
        return result;
    }
}
